package com.neuedu.yunong.service.impl;
import lombok.RequiredArgsConstructor;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neuedu.yunong.mapper.YunongExpertInformationMapper;
import com.neuedu.yunong.domain.YunongExpertInformation;
import com.neuedu.yunong.service.IYunongExpertInformationService;

/**
 * 专家信息Service业务层处理
 * 
 * @author mxwj
 * @date 2024-12-04
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class YunongExpertInformationServiceImpl extends ServiceImpl<YunongExpertInformationMapper, YunongExpertInformation> implements IYunongExpertInformationService
{
    private final YunongExpertInformationMapper yunongExpertInformationMapper;

    /**
     * 查询专家信息
     * 
     * @param id 专家信息主键
     * @return 专家信息
     */
    @Override
    public YunongExpertInformation selectYunongExpertInformationById(Long id)
    {
        return yunongExpertInformationMapper.selectYunongExpertInformationById(id);
    }

    /**
     * 查询专家信息列表
     * 
     * @param yunongExpertInformation 专家信息
     * @return 专家信息
     */
    @Override
    public List<YunongExpertInformation> selectYunongExpertInformationList(YunongExpertInformation yunongExpertInformation)
    {
        return yunongExpertInformationMapper.selectYunongExpertInformationList(yunongExpertInformation);
    }

    /**
     * 新增专家信息
     * 
     * @param yunongExpertInformation 专家信息
     * @return 结果
     */
    @Override
    public int insertYunongExpertInformation(YunongExpertInformation yunongExpertInformation)
    {
        return yunongExpertInformationMapper.insertYunongExpertInformation(yunongExpertInformation);
    }

    /**
     * 修改专家信息
     * 
     * @param yunongExpertInformation 专家信息
     * @return 结果
     */
    @Override
    public int updateYunongExpertInformation(YunongExpertInformation yunongExpertInformation)
    {
        return yunongExpertInformationMapper.updateYunongExpertInformation(yunongExpertInformation);
    }

    /**
     * 批量删除专家信息
     * 
     * @param ids 需要删除的专家信息主键
     * @return 结果
     */
    @Override
    public int deleteYunongExpertInformationByIds(Long[] ids)
    {
        return yunongExpertInformationMapper.deleteYunongExpertInformationByIds(ids);
    }

    /**
     * 删除专家信息信息
     * 
     * @param id 专家信息主键
     * @return 结果
     */
    @Override
    public int deleteYunongExpertInformationById(Long id)
    {
        return yunongExpertInformationMapper.deleteYunongExpertInformationById(id);
    }
}
